home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-1.iso / program / heatmon.zip / LP.H < prev    next >
C/C++ Source or Header  |  1995-11-26  |  879b  |  35 lines

  1.  
  2. /* @(#) lp.h 1.1 91/03/18  19:50:17 */
  3.  
  4. /* lp.h include file */
  5. /* function codes */
  6. #define IN 1
  7. #define OUT 2
  8. #define INIT 3
  9. #define STAT 4
  10. #define SELECT 5
  11. #define IS_BUSY 6
  12. #define IS_ACK 7
  13. #define IS_PRESENT 8
  14.  
  15. /* SELECT subfunction calls */
  16. #define ASSERT 100
  17. #define DEASSERT 101
  18.  
  19.  
  20. /* common lpt ports on PCs.  NOTE that the PC ROM bios does not bind these */
  21. /* addresses to LPTs according to any rule.  Instead it scans this set of */
  22. /* addresses and assigns LPTs in sequence.  The subtlty does not matter */
  23. /* except when dealing with some "smart" lpt cards that try to out-guess */
  24. /* what the BIOS is doing and adjusts its address accordingly.  For the */
  25. /* Nidget, we keep things a bunch simpler.  */
  26.  
  27.  
  28.  
  29. #define LPT1 0x3bc
  30. #define LPT2 0x378
  31. #define LPT3 0x278
  32.  
  33. extern unsigned int
  34. lpt_print( unsigned int, unsigned char, int);
  35.